using System;
using Prism.Events;

namespace CPlatePrintSys.Annotation.Events
{
    /// <summary>
    /// 清理标注缓存事件参数
    /// </summary>
    public class ClearAnnotationCacheEventArgs : EventArgs
    {
        /// <summary>
        /// 清理原因
        /// </summary>
        public string Reason { get; set; } = "图纸切换";
        
        /// <summary>
        /// 是否强制清理所有控件
        /// </summary>
        public bool ForceClearAll { get; set; } = true;
    }

    /// <summary>
    /// 清理标注缓存事件
    /// 当切换图纸时，通知所有标注控件清理其内部缓存和映射数据
    /// </summary>
    public class ClearAnnotationCacheEvent : PubSubEvent<ClearAnnotationCacheEventArgs>
    {
    }
}
